function get_config(config_gtv: gtv): list<rule>

Retrieves all rules following which a transfer can be used to register a new account.

Throws "CONFIG ERROR" if the config cannot be parsed. Common cases are:

  • CURRENT_ACCOUNT_REF is used in exactly one of sender or recipient
  • timeout_days is a negative number
  • sender or recipient have a list of values, alongside which CURRENT_ACCOUNT_REF or ANY_REF are found
  • some fields contain unexpected values. For example:
    • IDs cannot be parsed as hex byte_arrays
    • asset limits are invalid

Throws if any field is improperly formatted, in such a way that the values cannot be parsed.

Parameters

  • config_gtv — the GTV-encoded configuration containing rules. Generally comes from the chromia.yml moduleArgs field.

See Also

  • [asset_limit] — for examples of invalid values
© 2024 Chromia